#ifndef SKILLSPROXYMODEL_H
#define SKILLSPROXYMODEL_H


#include <characterclass.h>


#include <QSortFilterProxyModel>
#include <QPointer>


class SkillsProxyModel : public QSortFilterProxyModel
{
    Q_OBJECT

public:

    explicit SkillsProxyModel(QObject *parent = 0);

    virtual QVariant data(const QModelIndex &index, int role) const;
    virtual bool setData(const QModelIndex &index, const QVariant &value, int role);

    virtual Qt::ItemFlags flags(const QModelIndex &index) const;

public slots:

    void setClassSkills(const QModelIndex& sourceIndex);


protected:

    QPointer<Skills> m_classSkills;


    
};

#endif // SKILLSPROXYMODEL_H
